﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Data.Objects;

namespace ImportOrders
{
    /// <summary>
    /// Interaction logic for dlgListOrders.xaml
    /// </summary>
    public partial class dlgListOrders : Window
    {
        private List<tblOrderHeader> _orderHeaders;

        public dlgListOrders(List<tblOrderHeader> orderHeaders)
        {
            _orderHeaders = orderHeaders;
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ((CollectionViewSource)FindResource("Orders")).Source = _orderHeaders;
        }
    }
}
